package com.wavehi.service.impl;

import com.wavehi.mapper.StudentMapper;
import com.wavehi.mapper.impl.StudentMapperImpl;
import com.wavehi.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author WaveHi
 * @Date 16/10/2021 下午 10:23
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@Service
public class StudentServiceImpl implements StudentService {

//    @Autowired
//    @Qualifier("studentMapperImpl")
//    @Resource(type = StudentMapperImpl.class)
    @Resource
    private StudentMapper studentMapper;

    @Value("1")
    private Integer num;

    @Override
    public Boolean add() {
        System.out.println("Add!" + num);
        studentMapper.insert();
        return true;
    }
}
